import axios from "axios";
import { Message } from 'element-ui';
axios.interceptors.response.use((response)=>{
    console.log(response ,"DADASDA  ");
    if(response.data.code !==1000){
        Message.error(response.data.message  )
     throw new Error(response.data.message)
    }
   return response.data.data    

})


export default axios